Optimal. Leaf size=248 \[ \frac{1}{512} \sqrt{\frac{1}{3} \left (1291+1019 \sqrt{3}\right )} \log \left (x^2-\sqrt{2 \left (\sqrt{3}-1\right )} x+\sqrt{3}\right )-\frac{1}{512} \sqrt{\frac{1}{3} \left (1291+1019 \sqrt{3}\right )} \log \left (x^2+\sqrt{2 \left (\sqrt{3}-1\right )} x+\sqrt{3}\right )+\frac{25 x \left (1-x^2\right )}{48 \left (x^4+2 x^2+3\right )^2}+\frac{x \left (51 x^2+64\right )}{192 \left (x^4+2 x^2+3\right )}-\frac{1}{256} \sqrt{\frac{1}{3} \left (1019 \sqrt{3}-1291\right )} \tan ^{-1}\left (\frac{\sqrt{2 \left (\sqrt{3}-1\right )}-2 x}{\sqrt{2 \left (1+\sqrt{3}\right )}}\right )+\frac{1}{256} \sqrt{\frac{1}{3} \left (1019 \sqrt{3}-1291\right )} \tan ^{-1}\left (\frac{2 x+\sqrt{2 \left (\sqrt{3}-1\right )}}{\sqrt{2 \left (1+\sqrt{3}\right )}}\right ) \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.704989, antiderivative size = 248, normalized size of antiderivative = 1., number of steps used = 11, number of rules used = 7, integrand size = 28, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25 \[ \frac{1}{512} \sqrt{\frac{1}{3} \left (1291+1019 \sqrt{3}\right )} \log \left (x^2-\sqrt{2 \left (\sqrt{3}-1\right )} x+\sqrt{3}\right )-\frac{1}{512} \sqrt{\frac{1}{3} \left (1291+1019 \sqrt{3}\right )} \log \left (x^2+\sqrt{2 \left (\sqrt{3}-1\right )} x+\sqrt{3}\right )+\frac{25 x \left (1-x^2\right )}{48 \left (x^4+2 x^2+3\right )^2}+\frac{x \left (51 x^2+64\right )}{192 \left (x^4+2 x^2+3\right )}-\frac{1}{256} \sqrt{\frac{1}{3} \left (1019 \sqrt{3}-1291\right )} \tan ^{-1}\left (\frac{\sqrt{2 \left (\sqrt{3}-1\right )}-2 x}{\sqrt{2 \left (1+\sqrt{3}\right )}}\right )+\frac{1}{256} \sqrt{\frac{1}{3} \left (1019 \sqrt{3}-1291\right )} \tan ^{-1}\left (\frac{2 x+\sqrt{2 \left (\sqrt{3}-1\right )}}{\sqrt{2 \left (1+\sqrt{3}\right )}}\right ) \]
Antiderivative was successfully verified.
[In] Int[(4 + x^2 + 3*x^4 + 5*x^6)/(3 + 2*x^2 + x^4)^3,x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 31.1256, size = 350, normalized size = 1.41 \[ \frac{x \left (- 400 x^{2} + 400\right )}{768 \left (x^{4} + 2 x^{2} + 3\right )^{2}} + \frac{x \left (9792 x^{2} + 12288\right )}{36864 \left (x^{4} + 2 x^{2} + 3\right )} + \frac{\sqrt{6} \left (1152 + 4896 \sqrt{3}\right ) \log{\left (x^{2} - \sqrt{2} x \sqrt{-1 + \sqrt{3}} + \sqrt{3} \right )}}{442368 \sqrt{-1 + \sqrt{3}}} - \frac{\sqrt{6} \left (1152 + 4896 \sqrt{3}\right ) \log{\left (x^{2} + \sqrt{2} x \sqrt{-1 + \sqrt{3}} + \sqrt{3} \right )}}{442368 \sqrt{-1 + \sqrt{3}}} - \frac{\sqrt{3} \left (- \frac{\sqrt{2} \sqrt{-1 + \sqrt{3}} \left (2304 + 9792 \sqrt{3}\right )}{2} + 2304 \sqrt{2} \sqrt{-1 + \sqrt{3}}\right ) \operatorname{atan}{\left (\frac{\sqrt{2} \left (x - \frac{\sqrt{-2 + 2 \sqrt{3}}}{2}\right )}{\sqrt{1 + \sqrt{3}}} \right )}}{221184 \sqrt{-1 + \sqrt{3}} \sqrt{1 + \sqrt{3}}} - \frac{\sqrt{3} \left (- \frac{\sqrt{2} \sqrt{-1 + \sqrt{3}} \left (2304 + 9792 \sqrt{3}\right )}{2} + 2304 \sqrt{2} \sqrt{-1 + \sqrt{3}}\right ) \operatorname{atan}{\left (\frac{\sqrt{2} \left (x + \frac{\sqrt{-2 + 2 \sqrt{3}}}{2}\right )}{\sqrt{1 + \sqrt{3}}} \right )}}{221184 \sqrt{-1 + \sqrt{3}} \sqrt{1 + \sqrt{3}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((5*x**6+3*x**4+x**2+4)/(x**4+2*x**2+3)**3,x)
[Out]
_______________________________________________________________________________________
Mathematica [C] time = 0.615858, size = 129, normalized size = 0.52 \[ \frac{1}{768} \left (\frac{4 x \left (51 x^6+166 x^4+181 x^2+292\right )}{\left (x^4+2 x^2+3\right )^2}+\frac{3 \left (34+21 i \sqrt{2}\right ) \tan ^{-1}\left (\frac{x}{\sqrt{1-i \sqrt{2}}}\right )}{\sqrt{1-i \sqrt{2}}}+\frac{3 \left (34-21 i \sqrt{2}\right ) \tan ^{-1}\left (\frac{x}{\sqrt{1+i \sqrt{2}}}\right )}{\sqrt{1+i \sqrt{2}}}\right ) \]
Antiderivative was successfully verified.
[In] Integrate[(4 + x^2 + 3*x^4 + 5*x^6)/(3 + 2*x^2 + x^4)^3,x]
[Out]
_______________________________________________________________________________________
Maple [B] time = 0.037, size = 418, normalized size = 1.7 \[{\frac{1}{ \left ({x}^{4}+2\,{x}^{2}+3 \right ) ^{2}} \left ({\frac{17\,{x}^{7}}{64}}+{\frac{83\,{x}^{5}}{96}}+{\frac{181\,{x}^{3}}{192}}+{\frac{73\,x}{48}} \right ) }-{\frac{55\,\ln \left ({x}^{2}+\sqrt{3}+x\sqrt{-2+2\,\sqrt{3}} \right ) \sqrt{-2+2\,\sqrt{3}}\sqrt{3}}{3072}}-{\frac{21\,\ln \left ({x}^{2}+\sqrt{3}+x\sqrt{-2+2\,\sqrt{3}} \right ) \sqrt{-2+2\,\sqrt{3}}}{1024}}+{\frac{ \left ( -110+110\,\sqrt{3} \right ) \sqrt{3}}{1536\,\sqrt{2+2\,\sqrt{3}}}\arctan \left ({\frac{2\,x+\sqrt{-2+2\,\sqrt{3}}}{\sqrt{2+2\,\sqrt{3}}}} \right ) }+{\frac{-42+42\,\sqrt{3}}{512\,\sqrt{2+2\,\sqrt{3}}}\arctan \left ({\frac{2\,x+\sqrt{-2+2\,\sqrt{3}}}{\sqrt{2+2\,\sqrt{3}}}} \right ) }-{\frac{\sqrt{3}}{48\,\sqrt{2+2\,\sqrt{3}}}\arctan \left ({\frac{2\,x+\sqrt{-2+2\,\sqrt{3}}}{\sqrt{2+2\,\sqrt{3}}}} \right ) }+{\frac{55\,\ln \left ({x}^{2}+\sqrt{3}-x\sqrt{-2+2\,\sqrt{3}} \right ) \sqrt{-2+2\,\sqrt{3}}\sqrt{3}}{3072}}+{\frac{21\,\ln \left ({x}^{2}+\sqrt{3}-x\sqrt{-2+2\,\sqrt{3}} \right ) \sqrt{-2+2\,\sqrt{3}}}{1024}}+{\frac{ \left ( -110+110\,\sqrt{3} \right ) \sqrt{3}}{1536\,\sqrt{2+2\,\sqrt{3}}}\arctan \left ({\frac{2\,x-\sqrt{-2+2\,\sqrt{3}}}{\sqrt{2+2\,\sqrt{3}}}} \right ) }+{\frac{-42+42\,\sqrt{3}}{512\,\sqrt{2+2\,\sqrt{3}}}\arctan \left ({\frac{2\,x-\sqrt{-2+2\,\sqrt{3}}}{\sqrt{2+2\,\sqrt{3}}}} \right ) }-{\frac{\sqrt{3}}{48\,\sqrt{2+2\,\sqrt{3}}}\arctan \left ({\frac{2\,x-\sqrt{-2+2\,\sqrt{3}}}{\sqrt{2+2\,\sqrt{3}}}} \right ) } \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((5*x^6+3*x^4+x^2+4)/(x^4+2*x^2+3)^3,x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \frac{51 \, x^{7} + 166 \, x^{5} + 181 \, x^{3} + 292 \, x}{192 \,{\left (x^{8} + 4 \, x^{6} + 10 \, x^{4} + 12 \, x^{2} + 9\right )}} + \frac{1}{64} \, \int \frac{17 \, x^{2} - 4}{x^{4} + 2 \, x^{2} + 3}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((5*x^6 + 3*x^4 + x^2 + 4)/(x^4 + 2*x^2 + 3)^3,x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.315774, size = 1177, normalized size = 4.75 \[ \text{result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((5*x^6 + 3*x^4 + x^2 + 4)/(x^4 + 2*x^2 + 3)^3,x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 2.09213, size = 68, normalized size = 0.27 \[ \frac{51 x^{7} + 166 x^{5} + 181 x^{3} + 292 x}{192 x^{8} + 768 x^{6} + 1920 x^{4} + 2304 x^{2} + 1728} + \operatorname{RootSum}{\left (51539607552 t^{4} - 338427904 t^{2} + 1038361, \left ( t \mapsto t \log{\left (\frac{5536481280 t^{3}}{867169} - \frac{19920128 t}{867169} + x \right )} \right )\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((5*x**6+3*x**4+x**2+4)/(x**4+2*x**2+3)**3,x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [F] time = 0., size = 0, normalized size = 0. \[ \int \frac{5 \, x^{6} + 3 \, x^{4} + x^{2} + 4}{{\left (x^{4} + 2 \, x^{2} + 3\right )}^{3}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((5*x^6 + 3*x^4 + x^2 + 4)/(x^4 + 2*x^2 + 3)^3,x, algorithm="giac")
[Out]